import java.util.Objects;

public class Propose {
    private int serialId;
    private String name;
    private String value;

    public int getSerialId() {
        return serialId;
    }

    public void setSerialId(int serialId) {
        this.serialId = serialId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public void incrementSerial(){
        this.serialId++;
    }

    @Override
    public boolean equals(Object o) {
        Propose propose = (Propose) o;
        return
                Objects.equals(name, propose.name) &&
                        Objects.equals(value, propose.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, value);
    }
}
